package com.winter.Controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.winter.model.Peoplejobs;
import com.winter.service.PeoplejobsService;
import com.winter.util.Result;

@RestController
@RequestMapping("/personaljobs")
public class PeoplejobsController {

	@Autowired
	private PeoplejobsService service;
	
	/**
	 * 投递简历
	 * @return
	 */
	@PostMapping("/insertdelivery")
	public Result InsertDelivery(@RequestBody Peoplejobs record){
		return service.InsertDelivery(record);
	}
	
	/**
	 * 应聘
	 * @return
	 */
	@PostMapping("/insertemploy")
	public Result InsertEmploy(@RequestBody Peoplejobs record){
		return service.InsertEmploy(record);
	}
}
